package com.java.example.repository.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Update
import com.java.example.repository.entity.ProjectLocalBeanList

@Dao
interface ProjectLocalListBeanDao {
    @Query("select * from PROJECT_LOCAL_BEAN_LIST")
    fun getAll(): List<ProjectLocalBeanList>

    @Insert
    fun insert(bean: ProjectLocalBeanList)

    @Query("select * from PROJECT_LOCAL_BEAN_LIST where id = :id")
    fun load(id: String): ProjectLocalBeanList?

    @Update
    fun update(bean: ProjectLocalBeanList)

}